package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.CPreviousApproveT2;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.CPreviousApproveT2VO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 * 初步设计批复工程概算子表2 Mapper接口
 *
 * @author admin
 * @since 2025-09-22
 */
@Mapper
public interface CPreviousApproveT2Mapper extends BaseMapper<CPreviousApproveT2> {
    /**
     * 查询初步设计批复工程概算子表2
     *
     * @return
     */
    List<CPreviousApproveT2VO> selectCPreviousApproveT2List(@Param("query") CPreviousApproveT2VO vo);

    IPage<CPreviousApproveT2VO> pageList(@Param("page") Page<CPreviousApproveT2VO> page, @Param("query") CPreviousApproveT2VO vo);

    List<CPreviousApproveT2VO> getDataForExport(@Param("query") CPreviousApproveT2VO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<CPreviousApproveT2VO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);
}
